<extend name="Public/layout" />

<block name="content">
    <section class="wrapper site-min-height">
        <!-- page start-->
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                        查看短信记录
                    </header>
                    <div class="panel-body">
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th width="15%">名称</th>
                                <th>数据详情</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>短信ID</td>
                                <td>{$sms_log.id}</td>
                            </tr>
                            <tr>
                                <td>短信标识</td>
                                <td>{$sms_log.nid}</td>
                            </tr>
                            <tr>
                                <td>发送类别</td>
                                <td>{$sms_log['is_auto']?'自动发送':'调度发送'}</td>
                            </tr>
                            <tr>
                                <td>短信模版标题</td>
                                <td>{$sms_log.title}</td>
                            </tr>

                            <tr>
                                <td>短信内容</td>
                                <td>{$sms_log.content}</td>
                            </tr>

                            <tr>
                                <td>短信模版状态</td>
                                <td>
                                    <switch name="sms_log.status" >
                                    <case value="0">处理中</case>
                                    <case value="1">发送成功</case>
                                    <default />发送失败
                                    </switch>
                                </td>
                            </tr>

                            <tr>
                                <td>添加时间</td>
                                <td>{$sms_log.add_time|date='Y-m-d H:i:s',###}</td>
                            </tr>

                            <tr>
                                <td>发送时间</td>
                                <td>{$sms_log.send_time|date='Y-m-d H:i:s',###}</td>
                            </tr>
                            <tr>
                                <td>短信回执</td>
                                <td>{$sms_log.result}</td>
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </section>
            </div>
        </div>
        <!-- page end-->
    </section>
</block>

<block name="javascript">
    <script>
        //菜单高亮
        MenuHighlight('{:U("Admin/SmsTemplate/index")}');
    </script>
</block>